// +build darwin dragonfly freebsd linux openbsd solaris netbsd

package run

import (
	"os"
	"syscall"
)

// ProcAttr 程序配置
func ProcAttr(inpr, pw *os.File, dir string) *os.ProcAttr {
	return &os.ProcAttr{
		Files: []*os.File{
			inpr,
			pw,
			pw,
		},
		Dir: dir,
		Env: Environ,
		Sys: &syscall.SysProcAttr{Ptrace: true},
	}
}
